Email module

Script to send an email when a function or simulation is finished.

https://leimao.github.io/blog/Python-Send-Gmail/ - I make use of the ‘new authentication - less secure: app password’ method

class binarycpython.utils.email_utils.Email_context_manager(config, class_object)[source]

Bases: object

binarycpython.utils.email_utils.send_email(config, body_text, subject)[source]

Main function to handle sending the email

binarycpython.utils.email_utils.send_error_email(config, error, traceback, message, class_object=None)[source]

Function to send a general error email. Optionally uses class object

binarycpython.utils.email_utils.send_succes_email(config, message, class_object=None)[source]

Function to send a general success email. Optionaly uses class object